package com.summer.LanQiao;

public class _06 {
    public static void main(String[] args) {
        int a = 6;
        int b = m(a);
        System.out.println(b);
    }
    private static int m(int i){
        int ou = i&0xaaaaaaaa;//和1010 1010 1010 1010
        int ji = i&0x55555555;//和0101 0101 0101 0101
        return (ou>>1)^(ji<<1);
    }
}
